<template tag="以下文档内容为hycli自动生成">
  <div style="height: 100%">
    <div style="margin:0.8rem;"><h5 style="display:inline">缺陷管理</h5><span style="margin-left: 0.5rem; color:#999"> 测试bug跟踪管理</span>
        <ddmenu :menuList="lob_idList" @valueChanged="onlob_idChange" v-model="form_aaaxn.lob_id" menuType="my_business_line" ></ddmenu>
    </div>
    <hr style="margin-top:0;color:#999"/>
<div class="query">
    
    <div class="tabs">
        <el-tabs v-model="form_aaaxn.archive_status"  @tab-change="onQuery">
            <el-tab-pane v-for="item in archive_statusTabList" :name="item.value" :key="item.value" :label="item.name" 
             ></el-tab-pane>
          </el-tabs>
    </div>
    <el-form :model="form_aaaxn" inline >
        <!-- 日期控件个数： 4 -->
        <el-form-item>
            <!--多日期范围控件 -->
            <el-select v-model="form_aaaxn.single_date_range_name" filterable placeholder="日期类型" style="width:120px;" class="prepend">
                <el-option
                v-for="item in multiQueryDateRange"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
        </el-select>
            <el-date-picker :shortcuts="shortcuts" style="width: 200px" v-model="form_aaaxn.single_date_range_value" type="daterange" start-placeholder="开始日期"
                end-placeholder="结束日期" format="YYYY-MM-DD" value-format="YYYY-MM-DD" />
        </el-form-item>
        <!--研发计划 下拉控件 -->
        <el-form-item>
            <el-select  v-model="form_aaaxn.plan_id" style="width: 100px" filterable clearable placeholder="研发计划">
                <el-option v-for="item in plan_idList" :key="item.value" :label="item.name" :value="item.value" />
            </el-select>
        </el-form-item>
        <!--等级 下拉控件多选 -->
        <el-form-item>
            <el-select v-model="form_aaaxn.bug_level" filterable clearable multiple collapse-tags  style="width: 140px"
            collapse-tags-tooltip placeholder="等级">
                <el-option v-for="item in bug_levelList" :key="item.value" :label="item.name" :value="item.value" />
            </el-select>
        </el-form-item>
        <!-- 控件个数：[{"index":30,"raw":"title","name":"title","cname":"Title","type":{"raw":"varchar(128)","name":"varchar","len":128,"dlen":0},"defValue":"","allowNull":false,"constraints":["q","c","l","u","v","le","rows(1)","#like","lw(160)"],"desc":{"raw":"标题","name":"标题"}}] -->
         <el-form-item>
            <el-input clearable style="width: 180px" v-model="form_aaaxn.single_text_value" maxlength="32"
                placeholder="关键字" >
                <template #prepend>
                    <el-select v-model="form_aaaxn.single_text_name" placeholder="查询类型" style="width:84px;">
                        <el-option
                        v-for="item in multiQueryText"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                      </el-select>
                  </template>
            </el-input>
        </el-form-item>

        <span class="ddl">
        </span>
        <el-form-item>
            <el-space wrap>
                <el-button type="primary" icon="Search" @click="onQuery(true)">查询</el-button>
            </el-space>
        </el-form-item>
        
        <div class="blist">
            <el-button-group>
                <el-button :type="$js.page.tagColor(0)"
                
                 icon="Plus"  @click="show_cmpnt_aaaxs">缺陷管理</el-button>
                <el-button :type="$js.page.tagColor(1)"
                 :disabled="bcheck.length==0" 
                 icon="check"  @click="show_cmpnt_aaaxp">指派</el-button>
            </el-button-group>
        </div>

        <!-- xtabs -->
        

    </el-form>
</div>
<div>
   <aaaxs ref="cmpnt_aaaxs" @onsaved="onQuery"></aaaxs>
   <aaaxq ref="cmpnt_aaaxq" @onsaved="onQuery"></aaaxq>
   <aaaxo ref="cmpnt_aaaxo" @onsaved="onQuery"></aaaxo>
   <aaaxp ref="cmpnt_aaaxp" @onsaved="onQuery"></aaaxp>
   <aaaxr ref="cmpnt_aaaxr" @onsaved="onQuery"></aaaxr>
</div>
<div class="list">
    <el-table :data="dataList_aaaxn"
    @selection-change="handleSelectionChange" 
    v-loading="conf.loading" stripe  style="width: 100%;height:calc(100vh - 160px)"
         empty-text="无数据">le
<el-table-column width="24px" type="expand">
    <template #default="view">
        <el-row :gutter="24">
            <el-col :span="5" class="text-right" style="min-height:26px">编号:</el-col>
            <el-col :span="7" v-text="view.row.le_bug_id" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">标题:</el-col>
            <el-col :span="7" v-html="view.row.le_title||'-'" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">图片:</el-col>
            <el-col :span="7" style="min-height:26px">
                <el-image style="width:48px" :src="view.row.le_reproduce_steps_urls" preview-teleported :fit="contain"  :preview-src-list="[view.row.le_reproduce_steps_urls]">
                    <template #error>
                        <div class="image-slot">
                          <el-icon><icon-picture /></el-icon>
                        </div>
                      </template>
                </el-image>
            </el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">研发计划:</el-col>
            <el-col :span="7" v-text="view.row.plan_id_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">相关需求:</el-col>
            <el-col :span="7" v-text="view.row.related_demand_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">开发任务:</el-col>
            <el-col :span="7" v-text="view.row.dev_task_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">测试任务:</el-col>
            <el-col :span="7" v-text="view.row.test_task_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">等级:</el-col>
            <el-col :span="7" v-text="view.row.bug_level_label" style="min-height:26px"
              :class="$js.page.colorful(view.row.bug_level,'bug_level')" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">缺陷分类:</el-col>
            <el-col :span="7" v-text="view.row.bug_type_label" style="min-height:26px"
              :class="$js.page.colorful(view.row.bug_type,'bug_type')" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">重现步骤:</el-col>
            <el-col :span="7" v-text="view.row.le_reproduce_steps" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">提交时间:</el-col>
            <el-col :span="7" v-text="view.row.le_create_date" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">发现时间:</el-col>
            <el-col :span="7" v-text="view.row.le_found_date" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">状态:</el-col>
            <el-col :span="7" v-text="view.row.bug_status_label" style="min-height:26px"
              :class="$js.page.colorful(view.row.bug_status,'bug_status')" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">指派:</el-col>
            <el-col :span="7" v-text="view.row.assigned_to_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">创建人:</el-col>
            <el-col :span="7" v-text="view.row.creator_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">激活次数:</el-col>
            <el-col :span="7" v-text="view.row.le_activation_count" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">操作系统:</el-col>
            <el-col :span="7" v-text="view.row.le_os" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">浏览器:</el-col>
            <el-col :span="7" v-text="view.row.le_browser" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">解决时间:</el-col>
            <el-col :span="7" v-text="view.row.le_resolved_date" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">分配时间:</el-col>
            <el-col :span="7" v-text="view.row.le_assigned_date" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">归档状态:</el-col>
            <el-col :span="7" v-text="view.row.archive_status_label" style="min-height:26px"
              :class="$js.page.colorful(view.row.archive_status,'archive_status')" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">业务线:</el-col>
            <el-col :span="7" v-text="view.row.lob_id_label" style="min-height:26px"
              ></el-col>
        </el-row>
    </template>
</el-table-column>
          <el-table-column type="selection" width="32" /> 
        	<!--bug_id text -->
        <el-table-column  show-overflow-tooltip    align="center" label="编号" >
            <template #default="scope">
                  <span>{{ scope.row.bug_id||'-' }}</span>
              </template>
        </el-table-column>
        	<!--create_date date -->
        <el-table-column  show-overflow-tooltip   min-width="80"   align="center" label="提交时间" >
            <template #default="scope">
                  <span>{{ scope.row.create_date||'-' }}</span>
              </template>
        </el-table-column>
        	<!--title text -->
        <el-table-column  show-overflow-tooltip   min-width="160"   align="center" label="标题" >
            <template #default="scope">
                  <span>{{ scope.row.title||'-' }}</span>
              </template>
        </el-table-column>
        	<!--reproduce_steps_urls img -->
        <el-table-column   align="center" label="图片">
            <template #default="scope">
                <el-image v-for="v in scope.row.reproduce_steps_urls.split(',')" :key="v" style="width:64px"  :src="v" preview-teleported :fit="contain"  :preview-src-list="scope.row.reproduce_steps_urls.split(',')"
               >
                    <template #error>
                        <div class="image-slot">
                            <el-icon>
                                <icon-picture />
                            </el-icon>
                        </div>
                    </template>
                </el-image>
            </template>
        </el-table-column>
        	<!--bug_level tag -->
        <el-table-column    min-width="60"  prop="bug_level" align="center" label="等级">
            <template #default="scope">
                <el-tag :type="$js.page.tagColor(scope.row.bug_level,'bug_level')" round v-text="scope.row.bug_level_label"  ></el-tag>
            </template>
        </el-table-column>
        	<!--bug_type select -->
        <el-table-column    min-width="60"   prop="bug_type" align="center" label="缺陷分类">
            <template #default="scope">
                <span :class="$js.page.colorful(scope.row.bug_type,'bug_type')" 
                    v-text="scope.row.bug_type_label"></span>
            </template>
        </el-table-column>
        	<!--bug_status select -->
        <el-table-column    min-width="60"   prop="bug_status" align="center" label="状态">
            <template #default="scope">
                <span :class="$js.page.colorful(scope.row.bug_status,'bug_status')" 
                    v-text="scope.row.bug_status_label"></span>
            </template>
        </el-table-column>
        	<!--assigned_to select -->
        <el-table-column    min-width="60"   prop="assigned_to" align="center" label="指派">
            <template #default="scope">
                <span 
                    v-text="scope.row.assigned_to_label"></span>
            </template>
        </el-table-column>
        	<!--creator select -->
        <el-table-column     prop="creator" align="center" label="创建人">
            <template #default="scope">
                <span 
                    v-text="scope.row.creator_label"></span>
            </template>
        </el-table-column>

<el-table-column fixed="right" align="center" label="操作" width="180">
    <template #default="scope">
        <div class="opts">
            <el-button   type="text" @click="show_cmpnt_aaaxq(scope.row)" >详情 </el-button>
            <el-button   type="text" @click="show_cmpnt_aaaxo(scope.row)" >编辑 </el-button>
            <el-dropdown  @command="(command) => show_cmpnt(command, scope.row)">
                <span class="el-dropdown-link">
                更多
                </span>
                <template #dropdown>
                  <el-dropdown-menu>
            <el-dropdown-item command="aaaxp"  v-if='
            scope.row.archive_status==1&&bug_status!=0'>指派 </el-dropdown-item>
            <el-dropdown-item command="aaaxr" >删除 </el-dropdown-item>
                </el-dropdown-menu>
            </template>
            </el-dropdown>
        </div>
    </template>
</el-table-column>
    </el-table>
    <el-pagination :currentPage="form_aaaxn.pi" :page-size="form_aaaxn.ps"
        style="position: absolute; right: 30px;bottom:6px;" :page-sizes="[10,15,20,30, 50, 100]" :background="false" small
        layout="total,sizes,prev, pager, next, jumper" :total="total_aaaxn" @size-change="handleSizeChange"
        @current-change="handleCurrentChange" />
</div>
  </div>
</template>
<script>
// 缺陷管理
import aaaxs from "@/views/ws/test/test_bug.add"
// 详情
import aaaxq from "@/views/ws/test/test_bug.view"
// 编辑
import aaaxo from "@/views/ws/test/test_bug.edit"
// 指派
import aaaxp from "@/views/ws/test/test_bug.dialog"
// 删除
import aaaxr from "@/views/ws/test/test_bug.cnfrm"
// 业务线
import ddmenu from "@/views/cmpnts/ddMenu.vue"



export default {
components: {
    aaaxs,
    aaaxq,
    aaaxo,
    aaaxp,
    aaaxr,
     ddmenu,
},
data() {
  return {
    shortcuts: this.$js.page.latestDays(),
    cmpnt_funcs:{},
    bcheck:[],
    conf: {
      loading: false,
      progressColor: this.$theia.env.conf.progress || []
    },
    ganttIdx: -1,
        form_aaaxn: {
            pi: 1,
            ps: 15,
            disabled:false,
            single_date_range_name:"",
            single_date_range_value:[],
            single_text_name:"",
            single_text_value:"",
            title:"",
            plan_id:"",
            bug_level:[],
            create_date:"",
            found_date:"",
            resolved_date:"",
            assigned_date:"",
            archive_status:"",
            lob_id:"",
            },
            plan_idList:[],
            related_demandList:[],
            dev_taskList:[],
            test_taskList:[],
            bug_levelExts:[],
            bug_levelList:[],
            bug_typeList:[],
            bug_statusList:[],
            assigned_toList:[],
            creatorList:[],
            archive_statusList:[],
            archive_statusTabList:[],
            lob_idList:[],
            dataList_aaaxn:[],
            multiQueryDateRange:[{label:"提交时间",value:"create_date"},{label:"发现时间",value:"found_date"},{label:"解决时间",value:"resolved_date"},{label:"分配时间",value:"assigned_date"},],
            multiQueryText:[{label:"标题",value:"title"},],
            total_aaaxn:0,
            note_dataList:[],
};
  },
mounted() {
  this.loadEnums_aaaxn()
  this.form_aaaxn.lob_id = this.$theia.user.get("lob_id")
  this.form_aaaxn.single_date_range_name = (this.multiQueryDateRange[0]||{}).value
  this.form_aaaxn.single_text_name = (this.multiQueryText[0]||{}).value
  this.cmpnt_funcs["aaaxs"] = this.show_cmpnt_aaaxs
  this.cmpnt_funcs["aaaxq"] = this.show_cmpnt_aaaxq
  this.cmpnt_funcs["aaaxo"] = this.show_cmpnt_aaaxo
  this.cmpnt_funcs["aaaxp"] = this.show_cmpnt_aaaxp
  this.cmpnt_funcs["aaaxr"] = this.show_cmpnt_aaaxr

  this.form_aaaxn = Object.assign(this.form_aaaxn,this.$route.params)
    },
 watch: {
    '$route' () {
      this.form_aaaxn = Object.assign(this.form_aaaxn,this.$route.params)
      this.onQuery();//我的初始化方法
    }
  },
methods: {
  ganttChange(id) {
      this.ganttIdx = id
    },

queryData_aaaxn(mform = {},nform={}){
    //构建查询参数
    let queryForm = Object.assign({},this.form_aaaxn)
    queryForm = Object.assign(queryForm,nform||{})
    
    //处理多个日期选择
    queryForm[this.form_aaaxn.single_date_range_name] = this.form_aaaxn.single_date_range_value
    queryForm[this.form_aaaxn.single_text_name] = this.form_aaaxn.single_text_value
   
    //处理日期范围选择
      queryForm.bug_level = (queryForm.bug_level||[]).join(",")
      queryForm.start_create_date = null
      queryForm.end_create_date = null
    if(queryForm.create_date && queryForm.create_date.length > 1){
      queryForm.start_create_date = queryForm.create_date[0]
      queryForm.end_create_date = queryForm.create_date[1]
    }
      queryForm.start_found_date = null
      queryForm.end_found_date = null
    if(queryForm.found_date && queryForm.found_date.length > 1){
      queryForm.start_found_date = queryForm.found_date[0]
      queryForm.end_found_date = queryForm.found_date[1]
    }
      queryForm.start_resolved_date = null
      queryForm.end_resolved_date = null
    if(queryForm.resolved_date && queryForm.resolved_date.length > 1){
      queryForm.start_resolved_date = queryForm.resolved_date[0]
      queryForm.end_resolved_date = queryForm.resolved_date[1]
    }
      queryForm.start_assigned_date = null
      queryForm.end_assigned_date = null
    if(queryForm.assigned_date && queryForm.assigned_date.length > 1){
      queryForm.start_assigned_date = queryForm.assigned_date[0]
      queryForm.end_assigned_date = queryForm.assigned_date[1]
    }

    queryForm[this.form_aaaxn.single_date_range_name] = null
    queryForm.single_date_range_value = null
    queryForm.single_date_range_name = null

    queryForm.single_text_value = null
    queryForm.single_text_name = null
 
    //处理关联表test_bug test_bug 
   
    //发送查询请求
    let that = this
    that.conf.loading = true
    //构建统计查询
  //数据查询
  this.$theia.http.get("/ws/test/bug/query",queryForm).then(res=>{
      if((res.items||[]).length < (queryForm.ps||10)){
        that.form_aaaxn.disabled = true
      }
      that.conf.loading = false
      that.dataList_aaaxn = res.items||[]
      that.total_aaaxn = res.count
      that.resetItemData_aaaxn(that,that.dataList_aaaxn)
    });
  },

  resetItemData_aaaxn(that,lst){
    lst.forEach(item => {
      item.__raw = Object.assign({}, item)
    item.plan_id_label = that.$theia.enum.getName("dev_plan",item.plan_id)
    item.related_demand_label = that.$theia.enum.getName("prod_requirement",item.related_demand)
    item.dev_task_label = that.$theia.enum.getName("dev_task",item.dev_task)
    item.test_task_label = that.$theia.enum.getName("test_task",item.test_task)
    item.bug_level_label = that.$theia.enum.getName("bug_level",item.bug_level)
    item.bug_type_label = that.$theia.enum.getName("bug_type",item.bug_type)
    item.bug_status_label = that.$theia.enum.getName("bug_status",item.bug_status)
    item.assigned_to_label = that.$theia.enum.getName("dmaster",item.assigned_to)
    item.creator_label = that.$theia.enum.getName("user_account",item.creator)
    item.archive_status_label = that.$theia.enum.getName("bug_tab",item.archive_status)
    item.lob_id_label = that.$theia.enum.getName("my_business_line",item.lob_id)
    item.create_date_progress = item.create_date
    item.bug_id_progress = item.bug_id
    item.title_progress = item.title
    item.reproduce_steps_urls_progress = item.reproduce_steps_urls
    item.plan_id_progress = item.plan_id
    item.related_demand_progress = item.related_demand
    item.dev_task_progress = item.dev_task
    item.test_task_progress = item.test_task
    item.bug_level_progress = item.bug_level
    item.bug_type_progress = item.bug_type
    item.reproduce_steps_progress = item.reproduce_steps
    item.found_date_progress = item.found_date
    item.bug_status_progress = item.bug_status
    item.assigned_to_progress = item.assigned_to
    item.creator_progress = item.creator
    item.activation_count_progress = item.activation_count
    item.os_progress = item.os
    item.browser_progress = item.browser
    item.resolved_date_progress = item.resolved_date
    item.assigned_date_progress = item.assigned_date
    item.archive_status_progress = item.archive_status
    item.lob_id_progress = item.lob_id
    item.le_bug_id = item.bug_id
    item.le_title = item.title
    item.le_reproduce_steps_urls = item.reproduce_steps_urls
    item.le_plan_id = item.plan_id
    item.le_related_demand = item.related_demand
    item.le_dev_task = item.dev_task
    item.le_test_task = item.test_task
    item.le_bug_level = item.bug_level
    item.le_bug_type = item.bug_type
    item.le_reproduce_steps = item.reproduce_steps
    item.le_create_date = that.$theia.str.dateFormat(item.create_date,'MM/dd HH:mm')
    item.le_found_date = that.$theia.str.dateFormat(item.found_date,'MM/dd HH时')
    item.le_bug_status = item.bug_status
    item.le_assigned_to = item.assigned_to
    item.le_creator = item.creator
    item.le_activation_count = item.activation_count
    item.le_os = item.os
    item.le_browser = item.browser
    item.le_resolved_date = that.$theia.str.dateFormat(item.resolved_date,'MM/dd HH时')
    item.le_assigned_date = item.assigned_date
    item.le_archive_status = item.archive_status
    item.le_lob_id = item.lob_id
    item.create_date = that.$theia.str.dateFormat(item.create_date,'MM/dd HH:mm')
    if(item.children){
      that.resetItemData_aaaxn(that,item.children)
    }
  });
  },
    handleSelectionChange(lst=[]){
      this.bcheck = []
      lst.forEach(f=>{
        this.bcheck.push(f.bug_id)
      })
    },
    loadEnums_aaaxn(){
        //研发计划
        this.plan_idList = this.$theia.enum.get("dev_plan","",this.$theia.user.get("lob_id"),false,"")
        //等级
        this.bug_levelList = this.$theia.enum.get("bug_level","","" ,false,"")
        //归档状态
        this.archive_statusTabList = this.$theia.enum.get("bug_tab","","",false,"")
        //业务线
        this.lob_idList = this.$theia.enum.getTree("my_business_line","","" ,99)
        //等级
        this.bug_levelList = this.$theia.enum.get("bug_level","","" ,false,"")
        //缺陷分类
        this.bug_typeList = this.$theia.enum.get("bug_type","","" ,false,"")
        //状态
        this.bug_statusList = this.$theia.enum.get("bug_status","","" ,false,"")
        //指派
        this.assigned_toList = this.$theia.enum.get("dmaster","",this.$theia.user.get("lob_id"),false,"")
        //创建人
        this.creatorList = this.$theia.enum.get("user_account","","" ,false,"")
    },

  handleSizeChange(ps){
    this.form_aaaxn.ps = ps
    this.onQuery(true)
  },
  onlob_idChange(v){
    this.$theia.user.set("lob_id",v)
    this.loadEnums_aaaxn()
    this.onQuery(true)
  },
  handleCurrentChange(pi){
    this.form_aaaxn.pi = pi
    this.onQuery()
  },
  onQuery(refresh){
    if(refresh){
      this.form_aaaxn.pi = 1
    }
    this.queryData_aaaxn ()
  },
show_cmpnt(cmd,row){
  if(this.cmpnt_funcs[cmd]){
    this.cmpnt_funcs[cmd](row)
  }
},
  //详情
  show_cmpnt_aaaxq(fm = {}){
    let query = {} 
    query.title = fm.title|| fm.le_title 
    query.reproduce_steps_urls = fm.reproduce_steps_urls|| fm.le_reproduce_steps_urls 
    query.plan_id = fm.plan_id|| fm.le_plan_id 
    query.related_demand = fm.related_demand|| fm.le_related_demand 
    query.dev_task = fm.dev_task|| fm.le_dev_task 
    query.test_task = fm.test_task|| fm.le_test_task 
    query.bug_level = fm.bug_level|| fm.le_bug_level 
    query.bug_type = fm.bug_type|| fm.le_bug_type 
    query.reproduce_steps = fm.reproduce_steps|| fm.le_reproduce_steps 
    query.create_date = fm.create_date|| fm.le_create_date 
    query.found_date = fm.found_date|| fm.le_found_date 
    query.bug_status = fm.bug_status|| fm.le_bug_status 
    query.assigned_to = fm.assigned_to|| fm.le_assigned_to 
    query.creator = fm.creator|| fm.le_creator 
    query.activation_count = fm.activation_count|| fm.le_activation_count 
    query.os = fm.os|| fm.le_os 
    query.browser = fm.browser|| fm.le_browser 
    query.resolved_date = fm.resolved_date|| fm.le_resolved_date 
    query.assigned_date = fm.assigned_date|| fm.le_assigned_date 
    query.archive_status = fm.archive_status|| fm.le_archive_status 
    query.lob_id = fm.lob_id|| fm.le_lob_id 
    query.bug_id = fm.bug_id

      //2023.4.18添加---

    query.$title="详情"
    this.$refs.cmpnt_aaaxq.show(query)
  },
  //缺陷管理
  show_cmpnt_aaaxs(fm = {}){
    let query = {} 
    query.title = fm.title|| fm.le_title 
    query.plan_id = fm.plan_id|| fm.le_plan_id 
    query.related_demand = fm.related_demand|| fm.le_related_demand 
    query.dev_task = fm.dev_task|| fm.le_dev_task 
    query.test_task = fm.test_task|| fm.le_test_task 
    query.bug_level = fm.bug_level|| fm.le_bug_level 
    query.bug_type = fm.bug_type|| fm.le_bug_type 
    query.reproduce_steps = fm.reproduce_steps|| fm.le_reproduce_steps 
    query.assigned_to = fm.assigned_to|| fm.le_assigned_to 
    query.os = fm.os|| fm.le_os 
    query.browser = fm.browser|| fm.le_browser 
    query.bug_id = fm.bug_id

      //2023.4.18添加---
    query.bug_level = "3"
    query.bug_type = "1"

    query.$title="缺陷管理"
    this.$refs.cmpnt_aaaxs.show(query)
  },
  //编辑
  show_cmpnt_aaaxo(fm = {}){
    let query = {} 
    query.title = fm.title|| fm.le_title 
    query.dev_task = fm.dev_task|| fm.le_dev_task 
    query.test_task = fm.test_task|| fm.le_test_task 
    query.bug_level = fm.bug_level|| fm.le_bug_level 
    query.bug_type = fm.bug_type|| fm.le_bug_type 
    query.reproduce_steps = fm.reproduce_steps|| fm.le_reproduce_steps 
    query.os = fm.os|| fm.le_os 
    query.browser = fm.browser|| fm.le_browser 
    query.bug_id = fm.bug_id

      //2023.4.18添加---

    query.$title="编辑"
    this.$refs.cmpnt_aaaxo.show(query)
  },
  //指派
  show_cmpnt_aaaxp(fm = {}){
    let query = {}
    query.m = fm.w|| fm.le_w 
    query.bug_id = fm.bug_id

      //2023.4.18添加---

    query.$title="指派"
    this.$refs.cmpnt_aaaxp.show_aaaxp(query)
  },
  //删除
  show_cmpnt_aaaxr(fm = {}){
    let query = {} 
    query.bug_id = fm.bug_id|| fm.le_bug_id 
    query.bug_id = fm.bug_id

      //2023.4.18添加---

    query.$title="删除"
    this.$refs.cmpnt_aaaxr.show_aaaxr(query)
  },
},
};
</script>
<style>
.el-dialog{
  border-radius:5px !important
}
</style>
<style scoped>
.el-form-item {
  margin-right: 10px !important;
}

.opts .el-button--small {
  margin-left: 0px;
  padding-left: 0px;
  margin-right: 4px;
}

/deep/.el-table td.el-table__cell div {
  vertical-align: middle;
}
/deep/.el-button+.el-dropdown{
  margin-left:0px;
}
/deep/.el-button+.el-button{
  margin-left:0px;
}
.el-button{
  padding-left: 6px !important;
  padding-right: 6px !important;
}
.blist {
  margin-bottom: 8px;
  width: 100%;
}

.blist .el-radio-group {
  margin-right: 8px;
}

.ddl {
  margin-bottom: 8px;
  width: 100%;

}

.ddl .el-dropdown {
  margin-right: 8px;
}

.listbar {
  margin-bottom: 8px;
  text-align: center;
}
 .el-dropdown-link {
  cursor: pointer;
  color: var(--el-color-primary);
  display: flex;
  align-items: center;
  font-size: 0.65rem;
}
/deep/.el-button--small{
  padding: 5px 4px;
}

.prepend /deep/.el-input__wrapper{
  border-top-right-radius:0;
  border-bottom-right-radius:0;
}
.prepend+/deep/.el-date-editor{
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  border-left:0;
}

</style>